Repository navigation
🎨 Palette: tab rows get one Tab stop and arrow-key navigation - #366
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014GBDV9f136ya1azAyFte3P
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
ui.syncTabRoles(UI audit, 2026-11-14) marks every.cat-tabs/.arr-tabsrow asrole="tablist"/role="tab", but only Activity implements the WAI-ARIA tabs keyboard model. On the Knowledge Base, Deletions, Recommendations, taste and Swipe rows (WCAG 2.1.1 / 4.1.2 expectations for thetabrole):innerHTMLon every category change, so a keyboard user who pressed Enter on a tab loses focus to<body>.Playwright probe (static server, mocked
/api, Knowledge Base row), before:tabindex=[null×5]; focus on Overview, ArrowRight → focus stays on Overview; End → stays.Change
syncTabRoles: roving tabindex, 0 on the active tab (first visible if none), -1 on the rest.tabRowKey(ui.js, called from the existing document keydown listener): Arrow/Home/End move focus (manual activation: Enter/Space still picks, as the buttons already do); wraps; skips hidden tabs; ignores modified keys; leaves Activity's row to its own handler._renderTabsputs focus back on the active tab if it was on the row.Measured effect / proof
Same probe after:
tabindex=[0,-1,-1,-1,-1]; ArrowRight → focus on "attention"; End → "profiles".Tests
tests/test_a11y_nav.py::test_tab_rows_roving_and_arrowsruns the realsyncTabRoles,tabRowKeyand_renderTabsin node. Against untouched frontend it fails (functions missing); with the change 45/45 pass. Battery: 356/357 green;test_enrichment_status_perf.pyfails in the sandbox (SQLite planner) identically on untouched main.Risk & edge cases
No visual change. Tabs only gain focus on arrows, no data loads on arrow.
.activeclass changes already trigger the existing 50 ms sync; tabindex writes don't retrigger the observer (class-only filter). Hidden tabs (Activity's Scheduled for non-admins) are skipped.Duplicate check
Journals of all three personas,
git log -300, PR search "tab keyboard" (only unrelated closed PRs #16, #103, #129, #155, #361).Generated by Claude Code